<template>
	<view style="" class="u-p-t-22">
	<!-- 	<view class="view-1 flex-c-s" @click="$u.route('/pages/mine/change-password')">
			<view class="flex-c">
				<image src="/static/mine/a_change_pass.png" style="width: 28rpx;height: 32rpx;" mode="widthFix"></image>
				<text class="u-m-l-12">修改密码</text>
			</view>
			<image src="/static/mine/a_more_right.png" style="width: 28rpx;height: 28rpx;" mode="widthFix"></image>
		</view> -->

		<view class="view-1 flex-c-s" @click="tuichudenglu">
			<view class="flex-c">
				<image src="/static/mine/a_out_login.png" style="width: 32rpx;height: 32rpx;" mode="widthFix"></image>
				<text class="u-m-l-12">退出登录</text>
			</view>
			<image src="/static/mine/a_more_right.png" style="width: 28rpx;height: 28rpx;" mode="widthFix"></image>
		</view>

		<!-- <view class="view-1 flex-c-s" @click="zhuxiao">
			<view class="flex-c">
				<image src="/static/mine/a_logoff_account.png" style="width: 36rpx;height: 32rpx;" mode="widthFix">
				</image>
				<text class="u-m-l-12">注销账号</text>
			</view>
			<image src="/static/mine/a_more_right.png" style="width: 28rpx;height: 28rpx;" mode="widthFix"></image>
		</view> -->
	</view>
</template>

<script setup>

	const tuichudenglu = () => {
		uni.showModal({
			title: '温馨提示',
			content: '确定退出当前账号？',
			showCancel: true,
			cancelText: `取消`,
			cancelColor: uni.$main_color,
			confirmColor: '#666666',
			confirmText: '确定',
			success: (res) => {
				if (res.confirm)
					uni.$outLogin()
			}
		})
	}
	const zhuxiao = () => {
		uni.showModal({
			title: '注销账号',
			content: '注销账号，将对您账号下所有信息删除，请问您是否继续注销账号？',
			showCancel: true,
			cancelText: `取消`,
			cancelColor: uni.$main_color,
			confirmColor: '#666666',
			confirmText: '确定',
			success: (res) => {
				if (res.confirm)
					uni.$u.http.post('/lawyer/userDel', {}).then(res => {
						uni.$u.toast(res.msg)
						uni.$outLogin()
					})

			}
		})
	}
</script>

<style scoped lang="scss">
	.view-1 {
		width: 718rpx;
		height: 94rpx;
		background: #FFFFFF;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		margin: 0 auto 16rpx;
		padding: 0 24rpx 0 34rpx;
		font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
		font-size: 30rpx;
		color: #000000;
		line-height: 33rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
	}
</style>